package com.iss.apartmentmanage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.iss.apartmentmanage.entity.CheckinRecord;
import com.iss.apartmentmanage.entity.RoomManage;
import com.iss.apartmentmanage.model.BaseModel;
import com.iss.apartmentmanage.model.RecordWithRoomForAll;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Service
public interface CheckService {
    IPage<RoomManage> selectRoomForCheckIn(@RequestParam int pageNum, @RequestParam int pageSize,
                                           @RequestBody BaseModel baseModel);
    List<RecordWithRoomForAll> selectRoomForCheckOut(Integer pageNum, Integer pageSize, String roomType, String roomName,
                                                     Integer areaId, Double priceFrom, Double priceTo, Integer status);

    Integer updateRoomForFree(CheckinRecord checkinRecord);


}
